<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="ProjectMgtSystem.Entities.*" %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

                
                <!--our main content starts here--->
              
                <jsp:include page="../../template/user_top.jsp"/>          
                <table id="travel">
                    <caption>Your're watching ${requestScope.PROJECTID}</caption>
                    <thead>
                    <tr>
                        <th>Task ID</th>
                        <th>Task Name</th>
                        <th>Planning Start Date</th>
                        <th>Planning End Date</th>
                        <th>Start Date</th>
                        <th>End Date</th>
                        <th>Complete Ratio</th>

                    </tr>
                    </thead>
                    <%
                     java.util.ArrayList<Assignment> assList = (java.util.ArrayList<Assignment>) request.getAttribute("TaskInfoByProj");
                     for (Assignment ass : assList) {%>
                    <html:form action="/AssignmentAction">
                        <tfoot>
                        <tr>
                            <%
                                out.print("<td>" + ass.getTaskid() + "</td>");
                                out.print("<td>" + ass.getTaskName() + "</td>");
                                out.print("<td>" + ass.getPlanStartDate() + "</td>");
                                out.print("<td>" + ass.getPlanEndDate() + "</td>");
                                out.print("<td>" + ass.getStartDate() + "</td>");
                                out.print("<td>" + ass.getEndDate() + "</td>");
                                out.print("<td>" + ass.getCompleteRatio() + "</td>");

                            %>
                            <td><html:submit property="method"><bean:message key="AssignmentAction.viewAssignInfo"/></html:submit></td>
                            <html:hidden property="projectid" value="${requestScope.PROJECTID}"/>
                            <html:hidden  property="userid" value="${requestScope.USERID}"/>
                            <html:hidden property="taskid" value="<%=ass.getTaskid()%>"/>
                        </tr>
                        </tfoot>
                        </html:form>   
                        <%     }
                        %>
                </table>
                
                <!--our main content ends here -->
            
            
     <jsp:include page="../../template/user_bottom.jsp"/> 